home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 25
/
AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso
/
Updates
/
Updates
/
AWeb3.3
/
Install-AWeb33
< prev
next >
Wrap
Text File
|
2000-05-16
|
17KB
|
687 lines
; $VER: Install-AWeb33 1.0 (8.10.99)
; Description: Installer script for AWeb-II 3.0/3.0b/3.1/3.2 -> 3.3 patch
(complete 0)
(set #welcome
(cat "This installation procedure installs the AWeb-II 3.3 patch on your system.\n\n"
"You must have installed AWeb-II 3.2 previously.\n\n"
"You will need the original AWeb-II 3.x disks for this installation procedure."
)
)
(set #no-aweb3
(cat "AWeb3: assign not found.\nYou haven't properly installed AWeb-II 3.2.\n\n"
"The AWeb-II 3.3 patch is not applied."
)
)
(set #no-aweb32
(cat "The current version of AWeb-II is not 3.2.\n\n"
"This patch can only be applied if you upgrade to version 3.2 first.\n\n"
"Installation procedure terminated."
)
)
(set #checksum-msg
"Checking version of currently installed files. This will take a few seconds."
)
(set #checksum-error
(cat "Invalid checksum for file %s\n\n"
"You can apply this patch only to a complete AWeb-II version 3.2 installation."
)
)
(set #checksum-error1
"Could not discover the version of your release disks."
)
(set #already-aweb33
"It seems that you already have installed AWeb-II version 3.3 or later."
)
(set #restore-msg
(cat "\n\nYou may see this message because a previous upgrade attempt already "
"changed some files. In that case, you will have to copy all files in "
"the \"AWeb33Backup\" drawer back to the AWeb-II drawer. Then start the "
"installation program again."
)
)
(set #languages-prompt
"Please select which language catalog(s) you want to install"
)
(set #backup-prompt
"Select a location on your hard disk where the backup drawer should be created."
)
(set #backup-help
(cat "A backup will be made of the files in your AWeb-II drawer that are about "
"to be changed. You will need this backup in case this installation program "
"fails for any reason.\n\n"
"Select the location where a \"AWeb32Backup\" drawer should be created. "
"About 1 MB of free space is needed here. Make sure this location is on "
"a permanent storage like your hard disk, not in RAM.\n\n"
"If the installation is successful, you have the option to remove the backup "
"drawer.\n\n"
)
)
(set #insert-disk
"Please insert disk 1 of your original AWeb-II distribution (%s) into any drive."
)
(set #settingup "Setting up utilities")
(set #patching "Patching %s\n\nBe patient, this can take a while...")
(set #installing "Installing %s")
(set #askicons-prompt
(cat "Do you want to replace the existing icons with new colourful icons "
"for OS 3.5?\n(This is safe also under earlier versions of the OS)\n\n"
"WARNING: This will reset all tooltypes to their defaults."
)
)
(set #askicons-help
(cat "Amiga OS 3.5 supports a new style, colourful icons.\n\n"
"If you choose Yes, the existing icons for AWeb-II will be replaced by "
"new, colourful icons. This chioce is recommended if you have installed, "
"or plan to install, Amiga OS 3.5. Under older versions of the OS, the "
"old icon images are shown.\n"
"All tooltypes will be reset to their defaults if you choose Yes.\n\n"
"If you chooise No, no changes are made to your icons."
)
)
(set #delbackup-prompt
(cat "Installation of the AWeb 3.3 patch is successfully completed. The backup "
"drawer that was created earlier, is now no longer needed.\n"
"Do you want to delete this backup drawer?"
)
)
(set #delbackup-help
(cat "If you choose Yes, the drawer \"AWeb32Backup\" and all its contents "
"will be deleted from your hard disk. That will save about 1 MB disk space, "
"but it will be impossible for you to revert to AWeb-II version 3.2 should "
"that be necessary.\n\n"
"If you choose No, the drawer \"AWeb32Backup\" will remain on your hard disk. "
"Because these files are no longer needed by this installation program, "
"it is safe to delete this drawer at any time."
)
)
(set #ready
(cat "Installation of AWeb-II 3.2 -> 3.3 patch complete."
)
)
;==============================================================================
;---- Procedure to make Installer-type version number ----
(procedure P_version #p_ver #p_rev
(+ (* #p_ver 65536) #p_rev)
)
;---- Procedure to check the checksum for one file ----
; Continues quietly if a file doesn't exist. User may have deleted
; (aweblib) files not actually used and possibly quite hard to restore
; (needing original install + several upgrades).
; That file won't be upgraded, but since it wasn't there in the first
; place that won't harm.
(procedure P_checksum #pc_file #pc_sum
(set #v_file (tackon @default-dest #pc_file))
(if
(exists #v_file)
;then
(
(if
(<> #pc_sum (getsum (tackon @default-dest #pc_file)))
;then
(
(abort (cat (#checksum-error #pc_file) #restore-msg))
)
)
)
)
)
;---- Procedure to check current version ----
; for some reason (getversion) returns rubbish for all files except AWeb-II
; so that can't be used.
(procedure P_checkversion
(set #v_version (getversion (tackon @default-dest "AWeb-II")))
(if
(< #v_version (P_version 3 2))
;then
(
(abort #no-aweb32)
)
)
(if
(= #v_version (P_version 3 2))
;then
(
(working #checksum-msg)
(P_checksum "AWebCfg" -1749816972)
(P_checksum "AWebJS" -905258156)
(P_checksum "aweblib/awebjs.aweblib" -340584360)
(P_checksum "aweblib/arexx.aweblib" -1751740796)
(P_checksum "aweblib/authorize.aweblib" -1936404750)
(P_checksum "aweblib/cachebrowser.aweblib" 1706508428)
(P_checksum "aweblib/ftp.aweblib" 1485045243)
(P_checksum "aweblib/gopher.aweblib" -811933676)
(P_checksum "aweblib/history.aweblib" -1301673571)
(P_checksum "aweblib/hotlist.aweblib" 402358834)
(P_checksum "aweblib/mail.aweblib" -723787522)
; User may not have installed the second version of news.aweblib
(P_checksum "aweblib/startup.aweblib" 1823363188)
)
;else
(
(abort (cat #already-aweb33 #restore-msg))
)
)
)
;---- Procedure to make the backup ----
(procedure P_backup
(set #backupparent
(askdir
(prompt #backup-prompt)
(help (cat #backup-help @askdir-help))
(default @default-dest)
)
)
(set #backupdir
(tackon #backupparent "AWeb32Backup")
)
(makedir (#backupdir))
(copyfiles
(source @default-dest)
(dest #backupdir)
(choices "AWeb-II" "AWebCfg" "AWebJS" "aweblib")
)
)
;---- Procedure to ask for release disk #1 ----
; We don't know the name on beforehand, so check for all
; possible names.
(procedure P_askdisk
(until #v_ok
(
(if
(exists "AWeb3.0_Disk1:" (noreq))
;then
(
(set #v_ok 1)
(set #fromdisk "AWeb3.0_Disk1")
)
)
(if
(exists "AWeb3.1_Disk1:" (noreq))
;then
(
(set #v_ok 1)
(set #fromdisk "AWeb3.1_Disk1")
)
)
(if
(exists "AWeb3.2_Disk1:" (noreq))
;then
(
(set #v_ok 1)
(set #fromdisk "AWeb3.2_Disk1")
)
)
(if
(= #v_ok 0)
;then
(message (#insert-disk "named like AWeb3.X_Disk1"))
)
)
)
; And now make sure it is a disk, not an assign:
(askdisk
(prompt (#insert-disk #fromdisk))
(help @askdisk-help)
(dest #fromdisk)
)
)
;---- Procedure to get language name by number ----
(procedure P_langname #p_nr
(select #p_nr
"English" ; 0
"Català" ; 1
"Czech" ; 2
"Dansk" ; 3
"Deutsch" ; 4
"Español" ; 5
"Français" ; 6
"Hrvatski" ; 7
"Italiano"